package com.net.tkc.pro.service;


import com.net.tkc.pro.entity.Avatar;
import com.net.tkc.pro.entity.Follow;
import com.net.tkc.pro.impl.FollowImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class FollowService implements FollowImpl{
    @Resource
    FollowImpl follow;

    @Override
    public int addFollow(Follow Follow) {
        return follow.addFollow(Follow);
    }

    @Override
    public int upFollow(int Follow, int id) {
        return follow.upFollow(Follow, id);
    }

    @Override
    public List<Follow> getFromList(int to) {
        return follow.getFromList(to);
    }

    @Override
    public List<Follow> getToList(int from) {
        return follow.getToList(from);
    }
    @Override
    public List<Avatar> getFromList1(int to) {
        return follow.getFromList1(to);
    }
}
